<?php

namespace api\modules\v1\controllers;

use api\controllers\RestController;

/**
 * Default controller for the `v1` module
 */
class CourseController extends RestController
{
    public $except = ['index']; //*-全部方法
//    public $except = ['*'];

    public $modelClass = 'api\modules\v1\services\Course';

    /**
     * 重写create操作，进行用户注册或添加
     * @name: actions
     * @return array
     * @author: rickeryu <lhyfe1987@163.com>
     * @time: 17/11/21 下午4:57
     */
    public function actions() {
        $actions = parent::actions(); // TODO: Change the autogenerated stub
        unset($actions['create'], $actions['update'], $actions['delete']);
        return $actions;
    }


}
